{% extends "base.html" %}
{% block body %}
<div class="container">
  <div class="row">
    <div class="col-md-12">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <div class="row">
            <div class="panel-heading-title"> 所有注册用户 </div>
          </div>
        </div>
        
        <div class="panel-body">
          <table class="table">
            <tr>
              <th class="text-center">序号</th>
              <th class="text-center">名字</th>
              <th class="text-center">图片</th>
              <th class="text-center">操作</th>
            </tr>
            {% for _info in user_info %}
            <tr>
              <td class="text-center" >
                {{ _info["index"] }}
              </td>
              <td class="text-center" >
                {{ _info["name"] }}
              </td>
              <td class="text-center">
                <img src="{{ url_for('static', filename=_info['image']) }}" height="60" width="60"> 
              </td>
              <td class="text-center" >
                <form method="POST" action="{{ url_for('user_feature') }}" role="form" class="form-horizontal">
                  <div class="form-group">
                    <input type="hidden" id="feature_id" name="feature_id" value="{{ _info['image'] }}" />
	            <button class="btn btn-primary" id="delete_feature">删除</button>
                  </div>
                </form>
              </td>
            </tr>
            {% endfor %}
          </table>
        </div>

      </div>
    </div>
  </div>
</div>

{% endblock %}
